package com.cgw.web.author.manager;

import java.util.List;

import com.cgw.dmplt.author.domain.UserRole;

public interface UserRoleManager {
	 /**
     * insert.
     * @param userRole userRole
     * @return id
     */
    void insertUserRole(UserRole userRole);

    /**
     * delete.
     * @param userRole userRole
     */
    void deleteUserRole(UserRole userRole) ;
    
    /**
     * update.
     * @param userRole userRole
     */
    void updateUserRole(UserRole userRole);

    
    /**
     * list.
     * @param userRole userRole
     * @return userRole list
     */
    List<UserRole> listUserRole(UserRole userRole);
    
    /**
     * listCount.
     * @param userRole userRole
     * @return list count
     */
    int listUserRoleCount(UserRole userRole);
}
